package com.x.ganjiang.gen.start;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages = "com.x.ganjiang.gen.*")
@MapperScan(basePackages = "com.x.ganjiang.gen.infra.mapper")
@EnableAspectJAutoProxy
@EnableTransactionManagement
public class GanJiangGenApplication {

    private static Logger log = LoggerFactory.getLogger(GanJiangGenApplication.class);



    public static void main(String[] args) {
        long begin = System.currentTimeMillis();
        SpringApplication.run(GanJiangGenApplication.class, args);
        log.info("GanJiangGenServerStartSuccess");
        log.info("启动耗时ms：{}", System.currentTimeMillis() - begin);
    }

}
